package com.hsgene.goods.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 通用枚举信息DTO
 *
 * @author wangbing
 * @version 1.0, 2018/7/26
 */
public class CommonCodeDto implements Serializable {

    private static final long serialVersionUID = 101388830137509461L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 编码所属模块
     */
    private String module;

    /**
     * 编号类型
     */
    private String type;

    /**
     * 编码类型名称
     */
    private String typeName;

    /**
     * 编码
     */
    private Integer code;

    /**
     * 编码名称
     */
    private String name;

    /**
     * 父类型，如果存在
     */
    private CommonCodeDto parent;

    /**
     * 子类型列表，如果存在
     */
    private List<CommonCodeDto> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CommonCodeDto getParent() {
        return parent;
    }

    public void setParent(CommonCodeDto parent) {
        this.parent = parent;
    }

    public List<CommonCodeDto> getChildren() {
        return children;
    }

    public void setChildren(List<CommonCodeDto> children) {
        this.children = children;
    }
}
